package com.beamfield.dao.sys;


import com.beamfield.model.Labour;
import com.beamfield.model.LabourExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface LabourMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Labour record);

    int insertSelective(Labour record);

    List<Labour> selectByExample(LabourExample example);

    Labour selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Labour record, @Param("example") LabourExample example);

    int updateByExample(@Param("record") Labour record, @Param("example") LabourExample example);

    int updateByPrimaryKeySelective(Labour record);

    int updateByPrimaryKey(Labour record);

    long countPage(@Param("beamId") long beamId,@Param("ecode") String ecode,@Param("name") String name);

    List<Labour> selectPage(@Param("beamId") long beamId,@Param("offset") String offset,@Param("limit") String limit, @Param("ecode") String ecode,@Param("name") String name);

    Labour selectById(@Param("id") String id);

    int updateBeamIdByEcode(@Param("ecode") String ecode, @Param("beamId") String acBemaId);
}